﻿using Alipay.AopSdk.Core.Domain;
using LPP.Entity.Orders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPP.Service.OrderServices
{
    public interface IOrderService
    {
        //Task CreateOrderAsync(Order order, List<LPP.Entity.Orders.OrderDetail> orderDetails);
        Task<Order> GetOrderByIdAsync(string orderId);
        Task<List<Order>> GetUserOrdersAsync(int userId);
    Task UpdateOrderAsync(Order order);  // 新增更新订单的方法
        Task<bool> CreateOrderAsync(Order order, List<LPP.Entity.Orders.OrderDetail> orderDetails);
        Task<Order> CreateOrderAsync(Order order);
        Task<List<LPP.Entity.Orders.OrderDetail>> GetUnfinishedOrderDetailsAsync();

    }
}
